package cn.itfei.lottery.test.domain.ActivityTest;


import cn.itfei.lottery.domain.activity.model.req.PartakeReq;
import cn.itfei.lottery.domain.activity.model.res.PartakeResult;
import cn.itfei.lottery.domain.activity.service.partake.impl.ActivityPartakeImpl;
import com.alibaba.fastjson.JSON;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import javax.annotation.Resource;

/**
 * @description:
 * @author：hfb
 * @date: 2023/11/14
 */

@RunWith(SpringRunner.class)
@SpringBootTest
public class test_activityPartake {

    @Resource
    ActivityPartakeImpl activityPartake;
    private Logger logger = LoggerFactory.getLogger(test_activityPartake.class);
    @Test
    public void test_activityPartake() {
        PartakeReq req = new PartakeReq("Uhdgkw766120d", 100001L);
        PartakeResult res = activityPartake.doPartake(req);
        logger.info("请求参数：{}", JSON.toJSONString(req));
        logger.info("测试结果：{}", JSON.toJSONString(res));
    }

}
